export function decryptPhone(value, that) {
	if (value === null || value === undefined || value.trim() === '') {
		return Promise.resolve('');
	}
	return new Promise((resolve, reject) => {
			that.$http('/kernel/api/privacy/decryptPhone', {
				"CipherTexts": [value]
			}, res => {
				try{
					if (res.data.data.length > 0) {
						resolve(res.data.data[0].phone)
					} else {
						resolve(value)
					}
				}catch(e){
					resolve(value)
				}
			})
	})
}